// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//打入vant 框架
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);
//引入mui
import '../static/mui/css/mui.min.css'
import '../static/mui/css/icons-extra.css'


Vue.config.productionTip = false
    //启用vant 图片懒加载  Lazyload 
import { Lazyload } from 'vant';
Vue.use(Lazyload, {
    lazyComponent: true,
});
// 导入图片缩略 vue-preview
import VuePreview from 'vue-preview';
Vue.use(VuePreview);

//导入 vue-resource
import VueResource from 'vue-resource'
Vue.use(VueResource)
Vue.http.options.root = 'http://www.liulongbin.top:3005/';
//导入vuex 
import store from './store'

//导入日期处理类库 Moment.js
import moment from 'moment'
//配置全局格式化时间的过滤器
Vue.filter("dateFormat", function(dataStr, pattern = "YYYY-MM-DD hh:mm:ss") {
    return moment(dataStr).format(pattern)
})
new Vue({
    el: '#app',
    router,
    render: c => c(App),
    store
})